<template>
<div>
    <h2 style="text-align: center;">用户借款项目</h2>
    <BorrowCommon v-slot="info">
        <a href="#" @click="BorrowMoneyPage(info.id)">用户借款明细</a>
    </BorrowCommon>
</div>    
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';
import BorrowCommon from '../BorrowMoney/BorrowCommon.vue'

//创建路由实例
const router=useRouter(); 

//完成跳转到借款页面
const BorrowMoneyPage=(Bid:number)=>{
    router.push({
        name:'ShowAdminBorrowMoney',
        params:{
            Bid:Bid
        }
    })
}
</script>